package com.umpay.dto.spay;

import com.umpay.annotation.Pattern;
import com.umpay.verify.Verifiable;

import javax.validation.constraints.NotNull;

/**
 * 
 * @ClassName: CommonReq  
 * @Description: 商户接入公共基类  
 * @author zhangtao  
 * @date Jan 17, 2018
 */
public class CommonReq implements Verifiable{
	
	/**
	 * 接口名称
	 */
	@NotNull
	private String service;
	
	/**
	 * 签名方式
	 */
	@NotNull
	private String sign_type;
	
	/**
	 * 参数字符编码集
	 */
	@NotNull
	private String charset;
	
	/**
	 * 响应数据格式
	 */
	private String res_format;
	
	/**
	 * 商户编号
	 */
	@NotNull
	@Pattern(message="商户号格式不正确")
	private String mer_id;
	
	/**
	 * 页面跳转同步通知页面路径
	 */
	private String ret_url;
	
	/**
	 * 服务器异步通知页面路径
	 */
	private String notify_url;
	
	/**
	 * 版本号
	 */
	@NotNull
	private String version;
	
	public String getService() {
		return service;
	}

	public void setService(String service) {
		this.service = service;
	}

	public String getSign_type() {
		return sign_type;
	}

	public void setSign_type(String sign_type) {
		this.sign_type = sign_type;
	}

	public String getCharset() {
		return charset;
	}

	public void setCharset(String charset) {
		this.charset = charset;
	}

	public String getRes_format() {
		return res_format;
	}

	public void setRes_format(String res_format) {
		this.res_format = res_format;
	}

	public String getMer_id() {
		return mer_id;
	}

	public void setMer_id(String mer_id) {
		this.mer_id = mer_id;
	}

	public String getRet_url() {
		return ret_url;
	}

	public void setRet_url(String ret_url) {
		this.ret_url = ret_url;
	}

	public String getNotify_url() {
		return notify_url;
	}

	public void setNotify_url(String notify_url) {
		this.notify_url = notify_url;
	}

	public String getVersion() {
		return version;
	}

	public void setVersion(String version) {
		this.version = version;
	}

}
